﻿using System;
using DC2010.Objects.Base;

namespace DC2010.Objects.Data
{
    [Serializable]
    public class SkillData : BaseData
    {

        // http://dmweb.free.fr/?q=node/690

        /// <summary>
        /// Level of skill
        /// </summary>
        public long Experience { get; set; }

        public SkillGfx Gfx
        {
            get
            {
                if (!string.IsNullOrEmpty(GfxId))
                {
                    return Root.I.SkillSystem.GetGfx(GfxId);
                }

                return null;
            }
        }	

        private SkillLogic _l;
        public SkillLogic L
        {
            get
            {
                if (_l == null)
                    _l = new SkillLogic(this);

                return _l;
            }
        }
    }
}
